﻿@using BabyShop.Site.ViewModels
@model BabyShop.WebSite.ViewModels.ProductTypeSortsViewModel

@if (Model == null) { return; }
<div id="sortlist" class="m">
    <div class="mt">
        <h2>@Model.TopProductType.ProductTypeName</h2>
    </div>
    <div class="mc">
        <div class="item">
        @if (Model.CurrentProductType != null) {
            <ul>
            @foreach (var childProductType in Model.CurrentProductType.ChildProductTypes) {
                <li>@Html.ActionLink(childProductType)</li>
            }
            </ul>
        }
        </div>
        @foreach (var samePT in Model.SameProductTypes) {
            <div class="item">
            <h3><span>·</span>@Html.ActionLink(samePT)</h3>
            </div>
        }
    </div>
</div>
